package com.fy.tt.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author xiaoliang
 * @since 2021-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
//@TableName("bls_script")
//@ApiModel(value="Script对象", description="")
@Table(name = "bls_script")
public class Script implements Serializable {

    private static final long serialVersionUID = 1L;

    //    @TableId(value = "id", type = IdType.AUTO)
    @Id
    @Column(name = "id")
    private Long id;

    //    @ApiModelProperty(value = "剧本名称（可按照剧本功能取名）")
    @Column(name = "name")
    private String name;

    //    @ApiModelProperty(value = "剧本内容（运行剧本的实际内容）")
    @Column(name = "content")
    private String content;
    //    @ApiModelProperty(value = "剧本相关词汇")
    @Column(name = "related_words")
    private List<Long> related_words;

    //    @ApiModelProperty(value = "剧本保存时间")
//    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Column(name = "save_time")
    private Date saveTime;

    //    @ApiModelProperty(value = "剧本最近（上次）运行时间")
    @Column(name = "last_time")
    private Date lastTime;

    //    @ApiModelProperty(value = "剧本生效状态（0 禁用 1 启用）")
    @Column(name = "type")
    private Integer type;

    //    @ApiModelProperty(value = "所属场景区id（ObjBandID）")
    @Column(name = "band_obj_id")
    private Long bandObjId;

    //    @ApiModelProperty(value = "剧本语境定义文本")
    @Column(name = "script_environment")
    private String scriptEnvironment;

}
